<?php
class IndexController extends Zend_Controller_Action {
	public function indexAction() {
		//$this->getHelper('viewRenderer')->setNoRender(); <- phuong thuc nay khong cho action nay chuyen du lieu den view
		$this->view->string = "hello, I'm Truong Hoang Linh";

		$data = array(
			'title' => 'Zend Framework',
			'author' => 'Kenny',
			'date' => '20-11-2009',
			'website' => 'linh'
		);
		$this->view->info = $data;


	}

	function demoAction() {
		$this->view->hello = "Hello world";
	}

	function testAction() {
		$baseurl = $this->_request->getbaseurl(); // Lấy thư mục mặc định
		$this->view->doctype();
		$this->view->headtitle("Truong Hoang Linh - ex3");
		$this->view->headMeta()->appendName("Keyword", "Zend FrameWork");
		$this->view->headMeta()->offsetSetName("1", "description", "Php Green");
		$this->view->headLink()->appendStylesheet($baseurl."/public/css/test.css");
		$this->view->headscript()->appendFile($baseurl."/public/js/test.js", "text/javascript");
		$this->view->headscript()->offsetSetFile("1", $baseurl."/public/js/test2.js", "text/javascript");

	}
}
?>